﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Cadastro.aspx.cs" Inherits="AuctionSite.Cadastro" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js"></script>  
<script src="Scripts/maskedinput.js" type="text/javascript"></script>


<script type="text/javascript">
    $(document).ready(function () {
        $("#MainContent_txtTel").mask("(99) 9999-9999");
        $("#MainContent_txtCel").mask("(99) 9999-9999");
        $("#MainContent_txtCpf").mask("999.999.999.99");

    });
</script>
    <asp:Label ID="lblNome" runat="server" Text="Nome:"></asp:Label>
        <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Validator_nome" runat="server" 
        ControlToValidate="txtNome" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        
        <asp:Label ID="lblApelido" runat="server" Text="Apelido:"></asp:Label>
        <asp:TextBox ID="txtApelido" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Valida_Apelido" runat="server" 
        ControlToValidate="txtApelido" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />

        <asp:Label ID="lblTel" runat="server" Text="Telefone:"></asp:Label>
        <asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
        
        <br />

        
        <asp:Label ID="lblCel" runat="server" Text="Celular:"></asp:Label>
        <asp:TextBox ID="txtCel" runat="server"></asp:TextBox>
        <br />

        <asp:Label ID="lblEnd" runat="server" Text="Endereço:"></asp:Label>
        <asp:TextBox ID="txtEnd" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Valida_End" runat="server" 
        ControlToValidate="txtEnd" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />

        <asp:Label ID="lblCpf" runat="server" Text="CPF:"></asp:Label>
        <asp:TextBox ID="txtCpf" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Valida_Cpf" runat="server" 
        ControlToValidate="txtCpf" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />

        <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Valida_Email" runat="server" 
        ControlToValidate="txtEmail" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />

        <asp:Label ID="lblSenha" runat="server" Text="Senha:"></asp:Label>
        <asp:TextBox ID="txtSenha" TextMode="Password" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Valida_Senha" runat="server" 
        ControlToValidate="txtSenha" ErrorMessage="* Obrigatório" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
    <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar" 
        PostBackUrl="~/Cadastro.aspx" onclick="btnCadastrar_Click" />
</asp:Content>
